package cn.zz.comm.types.tuple;

/**
 * @author zhongq
 * @since 2022/3/19
 */
public class TupleThree<T1, T2, T3> {
	private final T1 t1;
	private final T2 t2;
	private final T3 t3;

	public TupleThree(T1 t1, T2 t2, T3 t3) {
		this.t1 = t1;
		this.t2 = t2;
		this.t3 = t3;
	}

	public static <T1, T2, T3> TupleThree<T1, T2, T3> of(T1 t1, T2 t2, T3 t3) {
		return new TupleThree<>(t1, t2, t3);
	}

	public T1 getT1() {
		return t1;
	}


	public T2 getT2() {
		return t2;
	}


	public T3 getT3() {
		return t3;
	}

	@Override
	public String toString() {
		return "TupleThree{" +
				"t1=" + t1 +
				", t2=" + t2 +
				", t3=" + t3 +
				'}';
	}
}